# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>

pkgname=ropr
pkgver=0.2.22
pkgrel=1
pkgdesc='Blazing fast multithreaded ROP Gadget finder'
url='https://github.com/Ben-Lichtman/ropr'
arch=('loong64' 'x86_64')
license=('Apache')
depends=('glibc' 'gcc-libs')
makedepends=('cargo')
source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('a6d361994fe6dbafdad01a7d8c8e218897160cf0021525a994e97ea72d044c0a7c307f59e095f2db1d67aa6815c03de6dd509d95e1aa0d6c44dbc55f11512eaf')
b2sums=('2e6755ce45d989dc68390def755f67bcc41f988a82b8a4721825a02f09e45c4ce836560b7c394915da76316a48dfe813d7ddbaae3c46f7e02ead1a8cef0be80a')

build() {
  cd ${pkgname}-${pkgver}
  cargo build --release --locked
}

check() {
  cd ${pkgname}-${pkgver}
  cargo test --release --locked
}

package() {
  cd ${pkgname}-${pkgver}
  install -Dm 755 target/release/ropr -t "${pkgdir}/usr/bin"
  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim: ts=2 sw=2 et:
